home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / g_man / cat3 / OpenGL / glubeginsurface.z / glubeginsurface
Encoding:
Text File  |  2001-04-17  |  4.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. gggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee((((3333GGGG))))            OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee            gggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      gggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee,,,, gggglllluuuuEEEEnnnnddddSSSSuuuurrrrffffaaaacccceeee - delimit a NURBS surface definition
  10.  
  11.  
  12. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      void gggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee( GLUnurbs* _n_u_r_b )
  14.  
  15.      void gggglllluuuuEEEEnnnnddddSSSSuuuurrrrffffaaaacccceeee( GLUnurbs* _n_u_r_b )
  16.  
  17.  
  18. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  19.      _n_u_r_b  Specifies the NURBS object (created with gggglllluuuuNNNNeeeewwwwNNNNuuuurrrrbbbbssssRRRReeeennnnddddeeeerrrreeeerrrr).
  20.  
  21. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.      Use gggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee to mark the beginning of a NURBS surface definition.
  23.      After calling gggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee, make one or more calls to gggglllluuuuNNNNuuuurrrrbbbbssssSSSSuuuurrrrffffaaaacccceeee
  24.      to define the attributes of the surface.  Exactly one of these calls to
  25.      gggglllluuuuNNNNuuuurrrrbbbbssssSSSSuuuurrrrffffaaaacccceeee must have a surface type of GGGGLLLL____MMMMAAAAPPPP2222____VVVVEEEERRRRTTTTEEEEXXXX____3333 or
  26.      GGGGLLLL____MMMMAAAAPPPP2222____VVVVEEEERRRRTTTTEEEEXXXX____4444.  To mark the end of the NURBS surface definition, call
  27.      gggglllluuuuEEEEnnnnddddSSSSuuuurrrrffffaaaacccceeee.
  28.  
  29.      Trimming of NURBS surfaces is supported with gggglllluuuuBBBBeeeeggggiiiinnnnTTTTrrrriiiimmmm, gggglllluuuuPPPPwwwwllllCCCCuuuurrrrvvvveeee,
  30.      gggglllluuuuNNNNuuuurrrrbbbbssssCCCCuuuurrrrvvvveeee, and gggglllluuuuEEEEnnnnddddTTTTrrrriiiimmmm. See the gggglllluuuuBBBBeeeeggggiiiinnnnTTTTrrrriiiimmmm reference page for
  31.      details.
  32.  
  33.      GL evaluators are used to render the NURBS surface as a set of polygons.
  34.      Evaluator state is preserved during rendering with
  35.      ggggllllPPPPuuuusssshhhhAAAAttttttttrrrriiiibbbb(GGGGLLLL____EEEEVVVVAAAALLLL____BBBBIIIITTTT) and ggggllllPPPPooooppppAAAAttttttttrrrriiiibbbb(). See the ggggllllPPPPuuuusssshhhhAAAAttttttttrrrriiiibbbb
  36.      reference page for details on exactly what state these calls preserve.
  37.  
  38. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  39.      The following commands render a textured NURBS surface with normals; the
  40.      texture coordinates and normals are also described as NURBS surfaces:
  41.  
  42.  
  43.           gluBeginSurface(nobj);
  44.              gluNurbsSurface(nobj, ..., GL_MAP2_TEXTURE_COORD_2);
  45.              gluNurbsSurface(nobj, ..., GL_MAP2_NORMAL);
  46.              gluNurbsSurface(nobj, ..., GL_MAP2_VERTEX_4);
  47.           gluEndSurface(nobj);
  48.  
  49.  
  50.  
  51. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  52.      gggglllluuuuBBBBeeeeggggiiiinnnnCCCCuuuurrrrvvvveeee, gggglllluuuuBBBBeeeeggggiiiinnnnTTTTrrrriiiimmmm, gggglllluuuuNNNNeeeewwwwNNNNuuuurrrrbbbbssssRRRReeeennnnddddeeeerrrreeeerrrr, gggglllluuuuNNNNuuuurrrrbbbbssssCCCCuuuurrrrvvvveeee,
  53.      gggglllluuuuNNNNuuuurrrrbbbbssssSSSSuuuurrrrffffaaaacccceeee, gggglllluuuuPPPPwwwwllllCCCCuuuurrrrvvvveeee
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.